#define SFKEY_ESCAPE          0x01
#define SFKEY_1               0x02
#define SFKEY_2               0x03
#define SFKEY_3               0x04
#define SFKEY_4               0x05
#define SFKEY_5               0x06
#define SFKEY_6               0x07
#define SFKEY_7               0x08
#define SFKEY_8               0x09
#define SFKEY_9               0x0A
#define SFKEY_0               0x0B
#define SFKEY_MINUS           0x0C    /* - on main keyboard */
#define SFKEY_EQUALS          0x0D
#define SFKEY_BACK            0x0E    /* backspace */
#define SFKEY_TAB             0x0F
#define SFKEY_Q               0x10
#define SFKEY_W               0x11
#define SFKEY_E               0x12
#define SFKEY_R               0x13
#define SFKEY_T               0x14
#define SFKEY_Y               0x15
#define SFKEY_U               0x16
#define SFKEY_I               0x17
#define SFKEY_O               0x18
#define SFKEY_P               0x19
#define SFKEY_LBRACKET        0x1A
#define SFKEY_RBRACKET        0x1B
#define SFKEY_RETURN          0x1C    /* Enter on main keyboard */
#define SFKEY_LCONTROL        0x1D
#define SFKEY_A               0x1E
#define SFKEY_S               0x1F
#define SFKEY_D               0x20
#define SFKEY_F               0x21
#define SFKEY_G               0x22
#define SFKEY_H               0x23
#define SFKEY_J               0x24
#define SFKEY_K               0x25
#define SFKEY_L               0x26
#define SFKEY_SEMICOLON       0x27
#define SFKEY_APOSTROPHE      0x28
#define SFKEY_GRAVE           0x29    /* accent grave */
#define SFKEY_LSHIFT          0x2A
#define SFKEY_BACKSLASH       0x2B
#define SFKEY_Z               0x2C
#define SFKEY_X               0x2D
#define SFKEY_C               0x2E
#define SFKEY_V               0x2F
#define SFKEY_B               0x30
#define SFKEY_N               0x31
#define SFKEY_M               0x32
#define SFKEY_COMMA           0x33
#define SFKEY_PERIOD          0x34    /* . on main keyboard */
#define SFKEY_SLASH           0x35    /* / on main keyboard */
#define SFKEY_RSHIFT          0x36
#define SFKEY_MULTIPLY        0x37    /* * on numeric keypad */
#define SFKEY_LMENU           0x38    /* left Alt */
#define SFKEY_SPACE           0x39
#define SFKEY_CAPITAL         0x3A
#define SFKEY_F1              0x3B
#define SFKEY_F2              0x3C
#define SFKEY_F3              0x3D
#define SFKEY_F4              0x3E
#define SFKEY_F5              0x3F
#define SFKEY_F6              0x40
#define SFKEY_F7              0x41
#define SFKEY_F8              0x42
#define SFKEY_F9              0x43
#define SFKEY_F10             0x44
#define SFKEY_NUMLOCK         0x45
#define SFKEY_SCROLL          0x46    /* Scroll Lock */
#define SFKEY_NUMPAD7         0x47
#define SFKEY_NUMPAD8         0x48
#define SFKEY_NUMPAD9         0x49
#define SFKEY_SUBTRACT        0x4A    /* - on numeric keypad */
#define SFKEY_NUMPAD4         0x4B
#define SFKEY_NUMPAD5         0x4C
#define SFKEY_NUMPAD6         0x4D
#define SFKEY_ADD             0x4E    /* + on numeric keypad */
#define SFKEY_NUMPAD1         0x4F
#define SFKEY_NUMPAD2         0x50
#define SFKEY_NUMPAD3         0x51
#define SFKEY_NUMPAD0         0x52
#define SFKEY_DECIMAL         0x53    /* . on numeric keypad */
#define SFKEY_OEM_102         0x56    /* <> or \| on RT 102-key keyboard (Non-U.S.) */
#define SFKEY_F11             0x57
#define SFKEY_F12             0x58
#define SFKEY_F13             0x64    /*                     (NEC PC98) */
#define SFKEY_F14             0x65    /*                     (NEC PC98) */
#define SFKEY_F15             0x66    /*                     (NEC PC98) */
#define SFKEY_KANA            0x70    /* (Japanese keyboard)            */
#define SFKEY_ABNT_C1         0x73    /* /? on Brazilian keyboard */
#define SFKEY_CONVERT         0x79    /* (Japanese keyboard)            */
#define SFKEY_NOCONVERT       0x7B    /* (Japanese keyboard)            */
#define SFKEY_YEN             0x7D    /* (Japanese keyboard)            */
#define SFKEY_ABNT_C2         0x7E    /* Numpad . on Brazilian keyboard */
#define SFKEY_NUMPADEQUALS    0x8D    /* = on numeric keypad (NEC PC98) */
#define SFKEY_PREVTRACK       0x90    /* Previous Track (SFKEY_CIRCUMFLEX on Japanese keyboard) */
#define SFKEY_AT              0x91    /*                     (NEC PC98) */
#define SFKEY_COLON           0x92    /*                     (NEC PC98) */
#define SFKEY_UNDERLINE       0x93    /*                     (NEC PC98) */
#define SFKEY_KANJI           0x94    /* (Japanese keyboard)            */
#define SFKEY_STOP            0x95    /*                     (NEC PC98) */
#define SFKEY_AX              0x96    /*                     (Japan AX) */
#define SFKEY_UNLABELED       0x97    /*                        (J3100) */
#define SFKEY_NEXTTRACK       0x99    /* Next Track */
#define SFKEY_NUMPADENTER     0x9C    /* Enter on numeric keypad */
#define SFKEY_RCONTROL        0x9D
#define SFKEY_MUTE            0xA0    /* Mute */
#define SFKEY_CALCULATOR      0xA1    /* Calculator */
#define SFKEY_PLAYPAUSE       0xA2    /* Play / Pause */
#define SFKEY_MEDIASTOP       0xA4    /* Media Stop */
#define SFKEY_VOLUMEDOWN      0xAE    /* Volume - */
#define SFKEY_VOLUMEUP        0xB0    /* Volume + */
#define SFKEY_WEBHOME         0xB2    /* Web home */
#define SFKEY_NUMPADCOMMA     0xB3    /* , on numeric keypad (NEC PC98) */
#define SFKEY_DIVIDE          0xB5    /* / on numeric keypad */
#define SFKEY_SYSRQ           0xB7
#define SFKEY_RMENU           0xB8    /* right Alt */
#define SFKEY_PAUSE           0xC5    /* Pause */
#define SFKEY_HOME            0xC7    /* Home on arrow keypad */
#define SFKEY_UP              0xC8    /* UpArrow on arrow keypad */
#define SFKEY_PRIOR           0xC9    /* PgUp on arrow keypad */
#define SFKEY_LEFT            0xCB    /* LeftArrow on arrow keypad */
#define SFKEY_RIGHT           0xCD    /* RightArrow on arrow keypad */
#define SFKEY_END             0xCF    /* End on arrow keypad */
#define SFKEY_DOWN            0xD0    /* DownArrow on arrow keypad */
#define SFKEY_NEXT            0xD1    /* PgDn on arrow keypad */
#define SFKEY_INSERT          0xD2    /* Insert on arrow keypad */
#define SFKEY_DELETE          0xD3    /* Delete on arrow keypad */
#define SFKEY_LWIN            0xDB    /* Left Windows key */
#define SFKEY_RWIN            0xDC    /* Right Windows key */
#define SFKEY_APPS            0xDD    /* AppMenu key */
#define SFKEY_POWER           0xDE    /* System Power */
#define SFKEY_SLEEP           0xDF    /* System Sleep */
#define SFKEY_WAKE            0xE3    /* System Wake */
#define SFKEY_WEBSEARCH       0xE5    /* Web Search */
#define SFKEY_WEBFAVORITES    0xE6    /* Web Favorites */
#define SFKEY_WEBREFRESH      0xE7    /* Web Refresh */
#define SFKEY_WEBSTOP         0xE8    /* Web Stop */
#define SFKEY_WEBFORWARD      0xE9    /* Web Forward */
#define SFKEY_WEBBACK         0xEA    /* Web Back */
#define SFKEY_MYCOMPUTER      0xEB    /* My Computer */
#define SFKEY_MAIL            0xEC    /* Mail */
#define SFKEY_MEDIASELECT     0xED    /* Media Select */

/*
*  Alternate names for keys, to facilitate transition from DOS.
*/
#define SFKEY_BACKSPACE       SFKEY_BACK            /* backspace */
#define SFKEY_NUMPADSTAR      SFKEY_MULTIPLY        /* * on numeric keypad */
#define SFKEY_LALT            SFKEY_LMENU           /* left Alt */
#define SFKEY_CAPSLOCK        SFKEY_CAPITAL         /* CapsLock */
#define SFKEY_NUMPADMINUS     SFKEY_SUBTRACT        /* - on numeric keypad */
#define SFKEY_NUMPADPLUS      SFKEY_ADD             /* + on numeric keypad */
#define SFKEY_NUMPADPERIOD    SFKEY_DECIMAL         /* . on numeric keypad */
#define SFKEY_NUMPADSLASH     SFKEY_DIVIDE          /* / on numeric keypad */
#define SFKEY_RALT            SFKEY_RMENU           /* right Alt */
#define SFKEY_UPARROW         SFKEY_UP              /* UpArrow on arrow keypad */
#define SFKEY_PGUP            SFKEY_PRIOR           /* PgUp on arrow keypad */
#define SFKEY_LEFTARROW       SFKEY_LEFT            /* LeftArrow on arrow keypad */
#define SFKEY_RIGHTARROW      SFKEY_RIGHT           /* RightArrow on arrow keypad */
#define SFKEY_DOWNARROW       SFKEY_DOWN            /* DownArrow on arrow keypad */
#define SFKEY_PGDN            SFKEY_NEXT            /* PgDn on arrow keypad */